package com.wondertek.service.dto.sys.req;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

/**
 * @author xqs
 */
@Data
public class SysDepartUpdateReq {

    /**
     * id
     */
    private String id;


    /**
     * 父级id
     */
    private String parentId;

    /**
     * 部门名称
     */
    @Schema(name = "departName",description = "部门名称")
    @NotBlank(message = "department.name.not.null")
    @Length(min = 1, max = 20, message = "depart.name.length")
    private String departName;

    /**
     * 部门类型
     */
    @Schema(name = "departType",description = "部门类型")
    private String departType;

    /**
     * 部门编码
     */
    @Schema(name = "departCode",description = "部门编码")
    private String departCode;

    /**
     * 部门描述
     */
    @Schema(name = "description",description = "部门描述")
    private String description;
}
